removed IPN-stuff
pep8 and cleanup
variable names were "covering builtin with same name"