Obtaining a Fully Interactive Shell

you wont always have python so this is a good resource to have bookmarked:
https://netsec.ws/?p=337