python port of php-snapchat