Looks like some spacing issues with your comments here. Are you replacing tabs with four space characters (a python convention)?