title: AttributeError: module 'socket' has no attribute 'inet_aton'
body: <p>When I run this scrip in terminal didn't work :/ , but when run that scrip on project pycharm it works without problems.
  this my code :</p>
  
  <pre><code>import socket  
  from binascii import hexlify   
  
  def iphost():  
  
      for ip_addr in ['192.168.1.15','127.0.0.1']:  
  
         packed = socket.inet_aton(ip_addr)  
  
         unpacked = socket.inet_ntoa(packed)  
  
         print ('Ip address : %s = packed: %s , unpacked %s'%(ip_addr,hexlify(packed),unpacked))
  
  iphost()
  </code></pre>
  
  <p>.</p>
  
  <pre><code>   Traceback (most recent call last):
     File "socket.py", line 1, in &lt;module&gt;
        import socket
     File "/home/linuxmint/Desktop/socket.py", line 9, in &lt;module&gt;
        iphost()
     File "/home/linuxmint/Desktop/socket.py", line 5, in iphost
        packed = socket.inet_aton('192.168.1.15','127.0.0.1')
     AttributeError: module 'socket' has no attribute 'inet_aton'
  </code></pre>
  
  <p>this problem when run in terminal</p>