Instance Selection Framework  for Amazon EC2 spot instances in Python