Clean up py

Cleaned up python code to remove samples. Added commentary.