get Rick's code to work
fix rick's python and merge stuff from Ben