drop pre-2.7 compatibility

initial bits, more cruft will be dropped when found.
drop fromurl()

no longer part of the API.
move the patch code in a separate script

the patchlib module now contains only library code.
avoid 'from' import as much as possible
use open() as context manager whenever feasible

actually where is easier :)
drop `print` references
initial py3 compatibility fixes